package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

//培训机构 专业管理关系信息
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tmp_train_speciality")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TrainSpecialityModel {
    @TableId(type = IdType.AUTO)
    private Integer id;// 培训机构 专业管理关系信息表ID
    private Integer trainId;//培训表ID
    private Integer specialityId;//专业id
    private String shortVideo;//短视频地址
    private Integer trainType;//培训类型 1.创业培训  2.技能培训
    private Integer peopleCount;//培训人数
    private String trainSpeciality;//专业介绍

    @TableField(exist = false)
    private String specialityText; //专业文字显示

//    @TableField(exist = false)
//    private List<String> specialityTextList; //专业文字列表显示

    @TableField(exist = false)
    private String trainTypeText; //培训类型文字显示

    @TableField(exist = false)
    private String trainIdText;//培训表ID对应学校名称


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;


}
